//
//  GetHumanDialerViewController.h
//  GetHumanDialer
//
//  Created by Jeffrey Palm on 12/19/08.
//  Copyright Jeffrey Palm 2008. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface GetHumanDialerViewController : UIViewController<UIAlertViewDelegate> {

	IBOutlet UIButton *button1;
	IBOutlet UIButton *button2;
	IBOutlet UIButton *button3;
	IBOutlet UIButton *button4;
	IBOutlet UIButton *button5;
	IBOutlet UIButton *button6;
	IBOutlet UIButton *button7;
	IBOutlet UIButton *button8;
	IBOutlet UIButton *button9;
	IBOutlet UIButton *buttonStar;
	IBOutlet UIButton *button0;
	IBOutlet UIButton *buttonHash;
	
	IBOutlet UILabel		*mainLabel;
	IBOutlet UITextView *mainText;
	IBOutlet UILabel		*statusLabel;
	IBOutlet UIActivityIndicatorView *spinner;
	
	IBOutlet UIButton *buttonAddContact;
	IBOutlet UIButton	*buttonCall;
	IBOutlet UIButton	*buttonBack;
	
	IBOutlet UIToolbar *toolbar;
	
	IBOutlet UINavigationBar	*numberField;

	// Temporary for updating the text field
	NSMutableString *tmpBuf;
	
	// Save when showing the alert
	NSString *numberToDial;
}

@property (nonatomic,retain) UIButton *button1;
@property (nonatomic,retain) UIButton *button2;
@property (nonatomic,retain) UIButton *button3;
@property (nonatomic,retain) UIButton *button4;
@property (nonatomic,retain) UIButton *button5;
@property (nonatomic,retain) UIButton *button6;
@property (nonatomic,retain) UIButton *button7;
@property (nonatomic,retain) UIButton *button8;
@property (nonatomic,retain) UIButton *button9;
@property (nonatomic,retain) UIButton *buttonStar;
@property (nonatomic,retain) UIButton *button0;
@property (nonatomic,retain) UIButton *buttonHash;

@property (nonatomic,retain) UILabel									*mainLabel;
@property (nonatomic,retain) UITextView								*mainText;
@property (nonatomic,retain) UILabel									*statusLabel;
@property (nonatomic,retain) UIActivityIndicatorView	*spinner;

@property (nonatomic,retain) UIButton		*buttonAddContact;
@property (nonatomic,retain) UIButton		*buttonCall;
@property (nonatomic,retain) UIButton		*buttonBack;

@property (nonatomic,retain) UIToolbar	*toolbar;

@property (nonatomic,retain) UINavigationBar		*numberField;

- (IBAction)buttonClicked:(id)sender;
- (IBAction)placeCall:(id)sender;
- (IBAction)back:(id)sender;
- (IBAction)addContact:(id)sender;

@end

